added "total" line