retry logic correction