compacting vertices.