fixing namedtype check