update function argument (use an array for options)