removed spark related code