changed the display, and added -p parameter