Where did you equate HIGH and LOW to ON and OFF (or vice versa) ?
Please remember to use code tags when posting code.