created draw line code