started working on need based spawning