单项选择题

When he was in the countryside, he______ visit the poor peasants.

A.used to
B.was used to
C.is used to
D.had used to