fix genfn's name