code for cleaning data