sublines are enumerated and translated
added Sigma sign for totals