dumb typo in type check