updated spawning.