change spark to sparkStub