removing sort function that's no longer needed