improved the ISR generator