proper way to access elements of AlgebraicVector