minor change for better spawning of new segments