added boolean for led