trying to get save working with the data model