might fix overlap bug by taking a max instead of min in stitcher