StateError moved up