ensure that overlap is computed in 2D