updated, just problem with destructor