adding methods to models