'totLength' to modular form