moving pwm stuff in