the castle stopped being a population enclave and was transformed into a chapel