added sequencer function