added identification of interval with maximum steps