updated sequencer, use algorithms.