adding support for rolling interval