rebuild vector