remove patterns