replace nargin with exist( , var)
replace nargin with exist( , var)