before destroying everything