Updated with closeness replacement of color