changed the mif to include testing for the leds