uncommented end_of_wave_update