added hook function for the entity mapper