small optimisation to cie1994