added script and tidy data