adapte the sequence