added init-vector and copy-vector