clean up initialization of State