detection of violations