update compare