vector functions return values