automate the creation of the data object