add averageCost