massaged the data sent from the view to the model into the correct format