first try with pwm. doesnt work