ring function

bring vector values into ring form