added all preprocess functions
restructure and redo preprocess functions