filters, totals and cleanups