valid sequence