moved to user model