added quantization for the wave parameters