updating dictionary segment to get rid of get_dict