add support of allowed errors rate