adding number of tries before aborting