changes logic from cost to price