remove retry._sleep
rename check_for_retry to check