add removeState() to