allow to set the interval