this method is not needed, its body can be simpy moved to the destructor