fixed stack blowout issue, >10^6 now functioning