updating existing file