tried timer interrupt
added some code for timer interrupts