rename & minor change
del temp file