vector functions added.