the history of this church is absolutely connected to the history of the castle