improved update for cluster algorithms.