update color functions.