preparing for get_data()