update clustering routines