adding an interval