added private destructor in entity to prevent unwanted destructions