change args slice to single dimension, but still mem problem on loop3