added peters special vector functions