pre-processing without probabilities