add some methods to entity