updated sniff method