inv_arg check added