format cleanup, init cleanup for totals