before adding pattern path