update interval logic