update all the entities