Corruption in the medieval church