cleaned up loop in childspawner