adding #defined spark