added some methods to the class