added a new function for arp matching