adj_dict functionality added