modified the display()