incorporated cost structure into cpp, running well