Revert "fix `nameFunc`"

This reverts commit ecc028927f160570ee0e45cbd1732821de12a05f.