changed default number of errors to 1