minor dealloc improvements