begin restructuring and adding pwm