Rename spark_line to spark, make it generic