working version on LED controller