added getRowValues function.