removed unneded code from interrupt handler