reset pattern to be empty