66: change some array to local vars