cost control callback