setting up dealloc