warning comes before destruction