update compare to method