added some ?nexts and sorted data