added multi-bit conpairison; works!