map/reduce, class refactoring failed