added getRow method