change the way of distroy