handle the cases where rows are not specified