added vector print function