fixed timer stuff hopefully for PWM