removed redundant LED code