forgot to add varargin2opts