working getArguments, also for multiple function calls