changed if again now led switch works