methods which accept var_args, added code to flatten out the arguments