better handling of colors