cleaned up preprocess variables