adding total costs.