adjust the order of the resource defination