interval should be inclusive