updated LED code