added draw points+lines function