printf changes for data collection