deletion of temporary files improved