add matching pattern overlay