fixed pre-processing errors