set timeout to 1s