restructure the array of the package bill