can handle arrays with multiple rows