reverse the entity