working on spawning