-refactoring
-fix bug counting total violations several times, for each pass