added line numbers to P command