working on spawning issue