minor improvement of the print_missing_data function