checkId, checkOverlapping refactoring