replace at-error with at-war in color-variation function