removed function __deconstruct from class