removal of intermediate files