removing PTX remnants