set color with factor