system
Persona: Assistant
human
Correct the sentence fragment in this text.

Relevant data:
The dog barked all night. Chasing after squirrels in the backyard.
gpt
The dog barked all night while chasing after squirrels in the backyard.