added a toGlobArrayN