lots of work on intervals