edit to get user object