add fail counter