added preprocessing script