move some array to heap