update #get_basic_data to return a hash