generate_sequences
