sentence1: He served as the General Counsel for both the Panama Railroad Company and later the Isthmian Canal Commission .
sentence2: He served as the general counsel to both the Panama Railroad Company and later the Isthmian Canal Commission .