update the code after creating the cost center