user
You need to complete the following task:

Rewrite the following sentence so that it is grammatically correct: 
"Peter and I went shopping yesterday, but I wasn't sure if he is was enjoying himself"


assistant
Peter and I went shopping yesterday, but I wasn't sure if he was enjoying himself.