draw lines function added