made change to sorter