Quality control: the EHP guarantee