added interval setting