update compactness