added methods to interface IEntity