update csv structure