debugged overlapping patchin and added seam patching