testing display function