added the dimming option