no need to have sorted array for nexts