Structural features of the intermetallic compounds Pr2M17 (M=Fe, Co) and implications on magnetic properties