Parse_one_record function working