add pattern/resample.pattern