method get_data