help to to make a better code
this is my code added

//additional code
$alanguages = array ('en','ms','ar','zh-CN');
if(!$archived) {
$strlenhost = strlen($vbseo_vars['bburl']."/");
$currentthreadurl = vbseo_url_thread($threadrow, 1, $archived);
foreach($alanguages as $language) {
$vbseo_stat['t']++;
$enchancedthreadurl = substr($currentthreadurl,0,$strlenhost). $language."/".substr($currentthreadurl,$strlenhost);
vbseo_add_url($enchancedthreadurl, $prior, $threadrow['lastpost'], $freq);
}
}
//end additional code


my statistic below
Threads
89,236
Posts
114,407
Members
1,877
default sitemap create about 2xx.xxx urls
but with 5 languages its only create 457,160 urls

for post only, if all translated and create urls in sitemap
its about 560,000 urls

whats wrong with my code
please help me to
thanks