bug fix preprocessing indexing of XC,YC and ZC