adding computed cost