improved preprocessing ver 1.0.5