modifies patch method
implements merge3 method