correction getNearSquares