updated entity history to work with latest entity version