created a routine for getting Row type and parameterized parseRows