added some methods to comment model