preprocessing improved