worked on adding intervals