small update to genericFunctions