add dimming method