use each_value instead of each