implemented irq handler
implemented irq reset handler