adding of display function