support arrays like [1, 2, 3]