plot cleanup