An attempt to unify the theory of quality control procedures