further work on dimmer