changed variable input to invector
changed variable input to invector