completed scripts for UVector conversion