Rule reminder
The gerund can replace a time clause (quando/mentre). It shares its subject with the main verb.
Arrivando a Roma, ha chiamato sua madre.