added variable row to function