added display function