reorder dependencies