reorders properely