cosmetics, reorder and classify uids