correct the ordering