action type 2 implemented in dimmer class