added clean function for additional pre-processing