fix data error in betweenSquares