finish data preprocessing