folding and sequencing