add functions
V1
V2
build lines