add swap, print vector