display function complete