updated calculation of overlapping volume

still exists bugs