store unsorted data in the closest scope