clean function adjust_data