added print_data for easier debugging