edited deinit code