manages states