Some vector functions