added computation of quality violations