upadte color coding scheme