JPH0432423B2 - - Google Patents

Info

Publication number
JPH0432423B2
JPH0432423B2 JP12824780A JP12824780A JPH0432423B2 JP H0432423 B2 JPH0432423 B2 JP H0432423B2 JP 12824780 A JP12824780 A JP 12824780A JP 12824780 A JP12824780 A JP 12824780A JP H0432423 B2 JPH0432423 B2 JP H0432423B2
Authority
JP
Japan
Prior art keywords
transaction
test
program
normal
teller machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP12824780A
Other languages
Japanese (ja)
Other versions
JPS5752870A (en
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed filed Critical
Priority to JP12824780A priority Critical patent/JPS5752870A/en
Publication of JPS5752870A publication Critical patent/JPS5752870A/en
Publication of JPH0432423B2 publication Critical patent/JPH0432423B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/201Accessories of ATMs

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Description

【発明の詳細な説明】 本発明は現金自動支払機、現金自動預入機ある
いはその両用機等の、いわゆる現金自動取引装置
の取引試験方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a transaction testing method for so-called automatic teller machines, such as automatic teller machines, automatic teller machines, or dual-purpose machines.

現金自動取引装置は一般に、カード上の磁気ス
トライブに記録された情報をリード/ライトする
磁気カード機構、紙幣を計数して放出する紙幣支
払機構、投入された紙幣の金種および真偽を判別
する紙幣預入機構、取引記録を残すための印刷機
構、顧客および係員が操作する操作機構等を備え
ている。このような現金自動取引装置の試験はプ
ログラムで実現されているのが実情であるが、そ
の場合問題となるのは、通常取引用プログラムと
試験用プログラムとでメモリ配分をいかにするか
ということである。従来は機能仕様を充実するた
め、通常取引用プログラムメモリに重点を置き、
試験用プログラムメモリを極力少なくする方式が
とられている。さらに、従来の試験用プログラム
は構成要素となつているハードウエアの個別試験
は可能であるが、総合的な取引試験は不可能とな
つているのが普通である。即ち、試験用メモリを
増せば取引試験も可能であるが、限りあるメモリ
を出来るだけ通常の機能仕様側で使用させるとい
う考え方にたつているものである。しかし、ハー
ドウエアを工夫することにより、メモリを大巾に
増やすことなく、取引試験機能を充実させること
は可能である。
Automatic teller machines generally have a magnetic card mechanism that reads/writes information recorded on a magnetic stripe on the card, a banknote dispensing mechanism that counts and discharges banknotes, and determines the denomination and authenticity of the inserted banknotes. It is equipped with a banknote deposit mechanism, a printing mechanism for keeping transaction records, and an operating mechanism operated by customers and staff. The reality is that tests of automated teller machines like this are implemented using programs, but the problem in that case is how to allocate memory between the normal transaction program and the test program. be. In the past, in order to enrich the functional specifications, we focused on the program memory for normal transactions,
A method is used to minimize the amount of test program memory. Furthermore, although conventional test programs are capable of individually testing the component hardware, they are generally not capable of comprehensive transaction testing. That is, although it is possible to conduct transaction tests by increasing the test memory, the idea is to use the limited memory as much as possible for normal functional specifications. However, by devising the hardware, it is possible to enhance the transaction test function without significantly increasing the memory.

本発明は上述の点に鑑み為されたもので、現金
自動取引装置の総合的な取引試験機能をメモリ容
量の大巾増加を必要とすることなく該現金自動取
引装置自体で可能とするものである。
The present invention has been made in view of the above-mentioned points, and is intended to enable a comprehensive transaction testing function of an automated teller machine to be carried out within the automated teller machine itself without requiring a large increase in memory capacity. be.

しかして、本発明は現金自動取引装置の取引試
験を顧客操作面を操作して行なうようにし、該取
引試験の際、該顧客操作面の操作に応答して通常
取引の際に使われる通常取引プログラムを実行す
るとともに、該取引試験の際に行なわれる少なく
ともセンタとの凝似送受信処理を試験用プログラ
ムを実行することにより行なうことを特徴とする
ものである。
Therefore, in the present invention, a transaction test of an automated teller machine is performed by operating the customer operation surface, and during the transaction test, in response to the operation of the customer operation surface, a normal transaction used in a normal transaction is performed. The present invention is characterized in that, in addition to executing the program, at least the simulated transmission/reception processing with the center performed during the transaction test is performed by executing the test program.

以下、図面を参照して本発明の内容を詳細に説
明する。
Hereinafter, the contents of the present invention will be explained in detail with reference to the drawings.

第1図は現金自動取引装置の正面概念図を示
す。顧客が操作する面はこの面である。図におい
て、1はカード挿入口、2は紙幣受取口、3は紙
幣返却口、4は文字表示器、5は操作誘導表示
器、6は顧客操作キーボード、7は紙幣預入口、
8は通帳入口、9は係員キーである。支払取引の
場合を例にとると、顧客はカード挿入口1に磁気
カードを挿入した後、操作誘導表示器5の誘導に
従つて顧客操作キーボード6で暗証番号と出金金
額を入力する。出金金額は文字表示器4に表示さ
れるので、自分の指定した金額の確認が可能であ
る。入力が終了すると、中央システムとのオンラ
イン送受信が実行され、紙幣受取口2から紙幣が
放出され、カード挿入口1からカードが返却され
る。上記動作は逐一操作誘導表示器5で誘導され
ている。上記は支払取引の例であるが、預入取
引、通帳有取引の場合も基本形は同一である。
FIG. 1 shows a conceptual front view of the automated teller machine. This is the side that the customer operates on. In the figure, 1 is a card insertion slot, 2 is a bill receiving slot, 3 is a bill return slot, 4 is a character display, 5 is an operation guidance display, 6 is a customer operation keyboard, 7 is a bill deposit slot,
8 is the passbook entrance, and 9 is the clerk key. Taking the case of a payment transaction as an example, a customer inserts a magnetic card into the card insertion slot 1 and then inputs a personal identification number and withdrawal amount using the customer operation keyboard 6 according to the guidance on the operation guide display 5. Since the amount to be withdrawn is displayed on the character display 4, it is possible to confirm the amount specified by the user. When the input is completed, online transmission and reception with the central system is executed, the banknotes are ejected from the banknote receiving slot 2, and the card is returned from the card insertion slot 1. The above operations are guided one by one by the operation guide display 5. The above is an example of a payment transaction, but the basic form is the same for deposit transactions and passbook transactions.

第2図は現金自動取引装置による上記通常取引
きを説明するためのフローチヤートである。通常
の取引は取引選択ボタンの押下から始まる。選択
可能な取引としては、支払、預入、残高照合、記
帳等があり、第2図は支払を選択した場合の例で
ある。取引選択後、磁気カードを挿入する。磁気
カードには本人識別用の暗証番号、口座番号、銀
行番号等が記録されている。磁気カードの読取り
が終了すると、暗証番号を入力する。暗証番が正
常であれば、支払金額を入力する。入力が全て終
了すると、該現金自動取引装置と接続されている
中央システムとの間でオンラインの送受信が行な
われる。オフライン機能がある場合は、装置内の
オフライン処理が行なわれることもある。オンラ
イン送受信後は、取引記録用の伝票印字放出、カ
ード放出、紙幣放出が実行され、顧客が伝票、カ
ード、紙幣を抜取ることにより1回の取引が終了
する。これが通常取引の例であるが、第2図の
の部分から入力、の部分が中央システムまたは
オフラインの処理、の部分が出力となる。
FIG. 2 is a flowchart for explaining the above-mentioned normal transaction by the automated teller machine. A normal transaction begins with the press of the transaction selection button. Selectable transactions include payment, deposit, balance verification, bookkeeping, etc., and FIG. 2 shows an example when payment is selected. After selecting a transaction, insert the magnetic card. A magnetic card records a personal identification number, account number, bank number, etc. After reading the magnetic card, enter the PIN number. If the PIN is correct, enter the payment amount. When all input is completed, online transmission and reception is performed between the automated teller machine and the connected central system. If an offline function is provided, offline processing within the device may be performed. After online transmission and reception, printing and discharging of slips for transaction recording, card discharging, and bill discharging are executed, and one transaction is completed when the customer removes the slip, card, and bill. This is an example of a normal transaction; the part shown in FIG. 2 is the input, the part shown is the central system or offline processing, and the part shown is the output.

第3図に装置の全体的なステータスの流れを示
す、電源投入後のステータスとしては閉局中、オ
ンライン開局中、オフライン開局中の3種類が普
通である。閉局中とは、いわゆる待機中(レデイ
状態)のことであり、電源を投入すると、まずこ
のステータスになる。閉局中にオンライン開局条
件が成立するとのルートでオンライン開局中ス
テータスへ、不成立になるとのルートで閉局中
に移行する。閉局中にオフライン開局条件が成立
すると、のルートでオフライン開局中ステータ
スへ、不成立になるとのルートで閉局中に移行
する。オンライン開局中とオフライン開局中のス
テータスは回線の状態によりのルートで相互に
移行する。試験機能は閉局中ステータスで実行さ
れなければならない。
FIG. 3 shows the overall status flow of the device. There are usually three types of statuses after the power is turned on: closed, online opened, and offline opened. "Closed" means what is called a standby (ready state), and when the power is turned on, the station first enters this status. If the online opening condition is met while the station is closed, the status will change to online open status, and if the condition is not met, the status will change to the online status while the station is closed. If the offline station opening condition is satisfied while the station is closed, the status changes to the offline status via the route , and when the condition is not met, the status changes to the status when the station is closed. The online and offline statuses change depending on the line status. The test function shall be performed in closed status.

通常、閉局中ステータスにおいては、第4図に
示す係員操作パネルを使用して各種の試験機能を
実施するが、第2図に示した通常取引に近似した
試験は不可能である。例え実施してもプログラム
メモリ量が大巾に増加することは明らかである。
Normally, in the closed status, various test functions are performed using the staff operation panel shown in FIG. 4, but tests similar to those for normal transactions shown in FIG. 2 are not possible. It is clear that even if implemented, the amount of program memory would increase significantly.

また、試験機能のうち、各構成機構を単独で
個々に試験する機能(単体試験と呼ぶ)は第4図
に示す係員操作パネルを使用して実行する。第4
図において、101は係員操作パネル、102は
16進の数字表示器、103はデータ設定用キーボ
ードである。キーボード103の0〜Fの表示
は、本例では16進キーボード表示となつている
が、実際の装置では通常係員操作用の表示であ
り、試験機能として使用する場合に16進キーボー
ドとして機能するという意である。試験機能とし
て使用する場合はテストキーを押してからキーボ
ードを使用する。テスト状態でキーボードを押下
すると、第5図に示すような入力が可能である。
第5図において、テストユニツト指定2桁、金種
指定2桁、枚数指定2桁と定義すれば、試験内容
の指定種類が各種可能になる。しかしながら、係
員操作パネルを使用する試験は通常の取引状態と
は別な動作であり、第1図に示したような一連の
取引状態試験は不可能である。
Further, among the test functions, the function of testing each constituent mechanism individually (referred to as unit test) is executed using the staff operation panel shown in FIG. Fourth
In the figure, 101 is an attendant operation panel, 102 is
A hexadecimal numeric display 103 is a data setting keyboard. The display of 0 to F on the keyboard 103 is a hexadecimal keyboard display in this example, but in the actual device, it is normally a display for staff operation, and when used as a test function, it functions as a hexadecimal keyboard. I mean it. When using the test function, press the test key before using the keyboard. When the keyboard is pressed in the test state, input as shown in FIG. 5 can be made.
In FIG. 5, by defining a 2-digit test unit designation, a 2-digit denomination designation, and a 2-digit number designation, various types of test contents can be specified. However, the test using the clerk operation panel is a separate operation from normal transaction conditions, and a series of transaction condition tests as shown in FIG. 1 are not possible.

総合的な取引試験を実行するためには顧客と同
一操作面から操作することが必須である。即ち、
第2図における入力部と出力部は通常取引と
全く同一とし、オンライン送受信部を試験用プ
ログラムに容易に切替えられればよいことが分か
る。
In order to perform a comprehensive trading test, it is essential to operate from the same interface as the customer. That is,
It can be seen that the input section and output section in FIG. 2 are exactly the same as those for normal transactions, and the online transmitter/receiver section can be easily switched to the test program.

第6図は現金自動取引装置の機能ブロツク図で
ある。第6図において、11は演算処理回路であ
り、マイクロプロセツサが使用されるのが普通で
ある。12は本装置の制御を実行するプログラム
とデータを記憶するための記憶装置である。13
は回線接続回路であり、信号バス30により演算
処理回路11に接続されて、その制御を受ける。
カード機構15、紙幣支払機構17、紙幣預入機
構19、印刷機構21、文字表示器23、操作誘
導表示器25、顧客操作キーボード27、係員操
作パネル29は各々の制御回路14,16,1
8,20,22,24,26,28を介して、同
様に信号バス30により演算処理回路11に接続
され、その制御を受ける。
FIG. 6 is a functional block diagram of the automated teller machine. In FIG. 6, numeral 11 is an arithmetic processing circuit, and a microprocessor is usually used. Reference numeral 12 denotes a storage device for storing programs and data for controlling the apparatus. 13
is a line connection circuit, which is connected to the arithmetic processing circuit 11 via a signal bus 30 and is controlled by the arithmetic processing circuit 11.
The card mechanism 15, bill payment mechanism 17, bill deposit mechanism 19, printing mechanism 21, character display 23, operation guidance display 25, customer operation keyboard 27, and staff operation panel 29 are connected to the respective control circuits 14, 16, 1.
8, 20, 22, 24, 26, and 28, it is similarly connected to the arithmetic processing circuit 11 by a signal bus 30, and is controlled by the arithmetic processing circuit 11.

第6図に示した装置を制御するプログラムの一
例を第7図に示す。第7図において、プログラム
は大きく3つに分割される。すなわち、装置全体
の動作を制御する制御プログラムと、ハードウエ
アの動作を制御するハードウエア制御プログラム
と、取引業務を処理する業務処理プログラムとで
ある。第7図のハードウエア制御プログラムはさ
らに個々の機構毎に分割され、各々独立に動作可
能である。閉局中、オンライン開局中、オフライ
ン開局中の3つのステータスにおける業務処理プ
ログラムは、各々必要なハードウエア制御プログ
ラムを使用して、所要の動作を実行する。第4図
と第5図で示した単体試験においては、閉局中業
務処理プログラムが係員操作パネルから指定され
たユニツト毎にハードウエア制御プログラムを使
用して単体試験を実行していることになる。本発
明の目的である取引試験を容易に行なうために
は、オンライン開局中、オフライン開局中におけ
る業務処理プログラムを容易に試験状態にできる
必要がある。
An example of a program for controlling the apparatus shown in FIG. 6 is shown in FIG. In FIG. 7, the program is roughly divided into three parts. That is, there are a control program that controls the operation of the entire device, a hardware control program that controls the operation of the hardware, and a business processing program that processes transaction operations. The hardware control program shown in FIG. 7 is further divided into individual mechanisms, each of which can operate independently. The business processing programs in the three statuses of closed office, online open office, and offline open office use respective necessary hardware control programs to execute required operations. In the unit test shown in FIGS. 4 and 5, the closed office processing program executes the unit test using the hardware control program for each unit specified from the staff operation panel. In order to easily conduct a transaction test, which is the object of the present invention, it is necessary to be able to easily put the business processing program into a testing state during online and offline operations.

第8図に本発明の一実施例である通常取引と取
引試験のフローチヤートを示す。第1図の9に示
した係員キーを挿入すると、プログラムは係員キ
ーが挿入されたことを検出できるようになる。
FIG. 8 shows a flowchart of a normal transaction and a transaction test according to an embodiment of the present invention. When the attendant key shown at 9 in FIG. 1 is inserted, the program will be able to detect that the attendant key has been inserted.

第8図において、係員キーの挿入状態を調べ、
挿入されていれば係員ガイダンスを表示する。係
員ガイダンスは、第1図の操作誘導表示器5に例
えばのように表示される。ここで、返却、復
旧、開局は各々特殊な係員の処理を示すもので、
本発明とは直接関係がない。係員ガイダンス表示
により、取引試験キーを押下すると、操作誘導
表示器5の表示はのようになる。この表示は
通常取引の冒頭に表示されるものと同じであり、
以後は通常取引用プログラムにより第2図に示し
た通常取引と同じ処理が実行される。即ち、第8
図の部分は第2図の部分と全く同一であり、
さらにの部分も第8図と第2図で同一である。
この間、第8図のの部分で再度係員キーの挿入
状態を検知し、挿入されていれば、第2図に示
したセンタとのオンライン送受信を実行すること
なく、あらかじめ現金自動取引装置に準備した試
験用プログラムの取引テストメツセージ処理によ
り凝似的なオンライン送受信処理を実行する。
In Fig. 8, check the insertion state of the attendant key,
If inserted, staff guidance will be displayed. The staff guidance is displayed on the operation guidance display 5 shown in FIG. 1, for example. Here, return, restoration, and opening each indicate processing by special staff.
It is not directly related to the present invention. When the transaction test key is pressed according to the staff guidance display, the display on the operation guidance display 5 becomes as follows. This display is the same as the one displayed at the beginning of a normal transaction,
Thereafter, the same processing as the normal transaction shown in FIG. 2 is executed by the normal transaction program. That is, the eighth
The part in the figure is exactly the same as the part in Figure 2,
Further parts are also the same in FIG. 8 and FIG. 2.
During this time, the insertion state of the clerk key is detected again in the part of Fig. 8, and if it is inserted, the automatic teller machine is prepared in advance without executing the online transmission/reception with the center shown in Fig. 2. The test program's transaction test message processing executes a similar online sending and receiving process.

以上説明したように、本発明によれば、現金自
動取引装置の取引試験の際、顧客操作面の操作に
応答して通常取引用プログラムを実行するととも
に、取引試験の際に行なわれる一部の処理(セン
タとの擬似オンライン送受信処理)を試験用プロ
グラムを実行することにより行なうことで、通常
取引状態に極めて近似した総合的な取引試験を装
置内のメモリ容量をそれほど増加することなく実
行することができる。
As explained above, according to the present invention, during a transaction test of an automated teller machine, a normal transaction program is executed in response to an operation on the customer operation surface, and a part of the transaction program performed during the transaction test is executed. By performing processing (simulated online transmission and reception processing with the center) by running a test program, a comprehensive trading test that closely approximates normal trading conditions can be performed without significantly increasing the memory capacity within the device. I can do it.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は現金自動取引装置の正面概念図、第2
図は通常取引を説明するためのフロー図、第3図
は現金自動取引装置のステータス移行を説明する
ための遷移図、第4図は係員操作パネルの概念
図、第5図は単体試験項目入力の説明図、第6図
は現金自動取引装置の機能ブロツク図、第7図は
本装置を制御するプログラムの概念図、第8図は
本発明の一実施例のフロー図である。 1…カード挿入口、2…紙幣受取口、3…紙幣
返却口、4…文字表示器、5…操作誘導表示器、
6…顧客操作キーボード、7…紙幣預入口、8…
通帳入口、9…係員キー。
Figure 1 is a front conceptual diagram of the automated teller machine, Figure 2
The figure is a flow diagram to explain normal transactions, Figure 3 is a transition diagram to explain the status transition of the automated teller machine, Figure 4 is a conceptual diagram of the staff operation panel, and Figure 5 is a unit test item input. 6 is a functional block diagram of the automated teller machine, FIG. 7 is a conceptual diagram of a program that controls the machine, and FIG. 8 is a flow diagram of an embodiment of the present invention. 1...Card insertion slot, 2...Banknote receiving slot, 3...Banknote return slot, 4...Character display, 5...Operation guidance display,
6...Customer operation keyboard, 7...Banknote deposit slot, 8...
Passbook entrance, 9...Attendant key.

Claims (1)

【特許請求の範囲】 1 現金自動取引装置の取引試験を、係員の操作
により当該装置自体で行なう方法において、 該取引試験を、当該装置上の顧客操作面を操作
し、該操作に応答して通常取引の際に使われる通
常取引プログラムを実行することにより行なうと
ともに、該取引試験中の少なくともセンタとの凝
似送受信処理を当該装置内に具備されている試験
用プログラムを実行することで行なうことを特徴
とする現金自動取引装置の取引試験方法。
[Scope of Claims] 1. A method in which a transaction test of an automatic teller machine is performed on the machine itself by operation of an attendant, wherein the transaction test is performed by operating a customer operation surface on the machine and responding to the operation. This is carried out by executing a normal transaction program used in normal transactions, and at least the simulated transmission and reception processing with the center during the transaction test is carried out by executing a test program installed in the device. A transaction testing method for an automated teller machine, characterized by:
JP12824780A 1980-09-16 1980-09-16 Testing method for automatic cash transaction apparatus Granted JPS5752870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12824780A JPS5752870A (en) 1980-09-16 1980-09-16 Testing method for automatic cash transaction apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12824780A JPS5752870A (en) 1980-09-16 1980-09-16 Testing method for automatic cash transaction apparatus

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP1135366A Division JPH0271364A (en) 1989-05-29 1989-05-29 Transaction test method for automatic cash transaction device
JP2006686A Division JPH02224062A (en) 1990-01-16 1990-01-16 Transaction test method for automated teller machine

Publications (2)

Publication Number Publication Date
JPS5752870A JPS5752870A (en) 1982-03-29
JPH0432423B2 true JPH0432423B2 (en) 1992-05-29

Family

ID=14980126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12824780A Granted JPS5752870A (en) 1980-09-16 1980-09-16 Testing method for automatic cash transaction apparatus

Country Status (1)

Country Link
JP (1) JPS5752870A (en)

Also Published As

Publication number Publication date
JPS5752870A (en) 1982-03-29

Similar Documents

Publication Publication Date Title
US4423313A (en) Transaction processing system
JPS6139186A (en) automatic transaction device
JPH0432423B2 (en)
JP2504402B2 (en) Ticket issuing device
JPS63184870A (en) Transaction processing device
US4983053A (en) Passbook printing machine
JP2962889B2 (en) Transaction processing system
JPH0355860B2 (en)
JPS6229838B2 (en)
JPH0271364A (en) Transaction test method for automatic cash transaction device
JPH1153611A (en) Automatic deposit payment device
JPH0636217B2 (en) Abnormality processing method in transaction processing device
JPH04362777A (en) Automatic transaction system
JP3738379B2 (en) Automated trading system
JPH0325234Y2 (en)
JP2511203B2 (en) Automatic transaction equipment
JP2982012B2 (en) Automatic teller machine
JPS5914072A (en) Cashing device
JPH0562052A (en) Operation monitoring time controlling method for automatic transaction device
JPS59191690A (en) Automatic transaction apparatus
JPH11175810A (en) Automatic transaction machine
JPH01265387A (en) Automatic transaction processor
JPS5828278Y2 (en) automatic transaction device
JPS63228371A (en) Coin handling control system for automatic transaction device
JPH0520525A (en) Automatic transaction machine provide with payment plan display function