broke down validate() of totals writer