is monotonic if either or