Verse 41

राज्यसज्जनसंपर्कपवित्रीकृतधीरधीः ।गवलश्चिन्तयामास शोकेनाकुलचेतनः

In plain words

Gavala -- his steady intellect purified by his association with the good men of the realm -- his mind now distraught with grief, reflected: