set a retry number