added resetSequence