solved isIncreasing