working on the getOverlapDepth functions