renamed .pat to .pattern