handle 0-length intervals
check for header in filter