pattern sequence