make the rectangles close
merge