changed VT function