call setTimeout earlier