update draw line