getUser() function scope?