added create data helper function