removed need to keep around temporary vector