create data object from Main