adding intervals