thus the defenses of the castle and its surroundings were considerably strengthened