add cost analysis