switched to iteration when number > MAX