fixed problems with giant array