adjust waiting time.