almost functionally equivalent to the old dimmer