updated the max retries