setup code to create tidy data