transform data from one format to another