added some methods to model