In the medieval period the wall circuit was expanded. What was reduced in the medieval period