cost/price refactoring