update to colorreduce in chap 2