getting rid of random spawning