first version
del tmp file