subrule comparing routine within comparePacket function