match incoming and outgoing