added more spark code to test