added a create IOU function that needs further work