further work on dimmer class