changed output to give v in stead of p