initial IRQ polling code