fixed bug in TXZY_preprocessing