documentation for intervals