modifications to the intervals and interval functions