used dervise to get user data