changed interval to timeout