more functionalities for the add iou function