some further work on dimmer class