add sequence type check