no return in getOverlap, fixed it