adding variables for all_off all_on functions