chap3: remove temporary file