smart way of getting user