draw lines method