remove binaries and residues