fixed how colors are generated