add column to create line
updated create linene function