support arrays with only one element