updating file stucture