fixing prepareRow function.