create first part of dataset (up to step 5, excl.)