setting defaults for vars in sorting