is $pattern even used?