preparation for data extraction