better handling of color changes via simple iteration
better handling of color changes via simple iteration