using an interval