new ruby version. fix map_reduce