add vjia, adjust statistics code