transfers data to the more correct format