hash both ways