implemented adding multiple destructors