switch to clearer each_with_object