updated through to quicksort