check sequence