modified the wave_table feature