replaced destructor by function named clean