added ronnycarr dimmer code