updating files structure