code isDelayed