typo patter[n]