dealloc and initwithstate