file transformation adapted to new format