implemented phase modulation