add checkstate