forgot to add || logic to the operation, otherwise it would never work with non inclusive intervals