updating tmp file