added functionality to map user to team