writeState no longer exists