pattern edit