adjust retry check