differentiate between incoming and outgoing