threshold and convert_wave changes