remove pattern