began with the sorted vector