removed try statement from collect_data