check that we have a pattern