fixed color calculations