simple simplifier preprocessor