refactoring parse_func_arg