removed unused functions in Entity