initial PWM work