typo in typename check