change function name to function id