updated entities/deleted old ones