re-ordering of pie and belonging table