finished preprocessing ver 1.0