updating file