code spawns specified