fixed typo where name should be typeName