changed params to variable arg