used setTimeout and clearTimeout