add timeout to the transition