corrected multi stage iteration sample input