add support to dimming also