sorting almost done