vectorize; now seg and tag are the same, haha