bug fixed. Pre-processing finished