updated to deal with #s/bs, still needs solution for higher dict-value transpositions