removing intermediate files