update the vector.line function