initial data and script from Morgan