on the way to make sorting