using interrupts

Copy / Paste programming always produces crappy results. Either learn to do it correctly or pay someone who knows what they're doing.