Added overlap_3d to clean up the contration int int_overlap