update saturation and value calculation