completed useArguments in functions