support one-dimensional array
support multi-dimensional array