working on extract_gvecs