add compairUpdate method