check prev state