added a function to hopefully return a row as an array