match pattern color change