implemented util fn to deal with vectors
fixed errors in convert_vectors
use convert_vectors function in Gatherv_x