now using null to denote "no total rows"