fixed the stray led, timing is now time-based