copied retry_avbl if the input is undefined