change in sort method