adding some basic color calculations