changed if in led methods