added get_nrows
added get_nrows