pattern matcher method call fix