wrapped logic portion inside ready-check