Improvement of pulse width modulation techniques