get rid of extraneous color instructions