update the interval