script for fixing all the data