add in some of the NMS code for overlap