compare exist state