resorting some stuff