refactor benford-related analysis