add line creation functionality