still errors in the sort