convert functions in PLif to use sgvector