modified helper to use the user instead of the height
minor refactoring