methods implemented in categories and users models