reorder packages calls