added allowed errors before loss