finishing draft of get_data