added interval option