marshal whole array