modifying data transform to fit the schema