modifications to preprocessing and OF