added second error criterium