store the delay in a var, then pass it to `setTimeout`