updated reducer clustering