search for intervals