bug: nargin -> nargout