control length of sequences