finally got the idea of ISR and IMR