Use vector's modify function