fixed parenthesis error in isOverlap