removed unnecessary function for getting a new data object