encoding trash removal