factor out line-ending and tighten up number