change script to have tidy dataset saved in global env