add name.go
remove unneeded check