updated to test interrupts