generateSequence source added