use a vector to halves the cost of divisions