tidy data script

tidy data script implementation