change print_record to get record, to get more modulerity.