added flag to destroy