clean up for the spark