changed TIM0 to TIM2