doubling the size of the pattern buffer