reduce -> each_with_object
continuation indentation removed