changed to use vector iterators