have document use a vector instead of a set