add function name in api