add compairUpdate method and modify some space
add compairUpdate