add to sort method