added switch on off example