make num retries a constant