deleted the for loop in get_cost_updates