rewrite methods in user model