implemented a first version of a simple preprocessing.