testing code for data collection