compile methods for the spark
compile methods for the spark