add enumerate-interval and filter for stream