patch editing