saves all entities