clearing state