updated costs and demand