refactor retryTime