fixing preprocessing pipeline