added plot deletion