'matFirstTally' to modular form