def add_index_to_pairs(ordered_pairs):
    """
    Creates a dictionary where each KEY is a integer index and
    the VALUE is a dictionary of the x,y pairs

    Parameters
    ----------
    ordered_pairs: dict
        dictionary that has been ordered

    Returns
    -------
    dict
        this dictionary has
        OUTER_KEY = integer index
        INNER_KEY = x value
        VALUE = y value
    """
    new_dict = {}
    for i, x in enumerate(ordered_pairs):
        new_dict[i] = {x: ordered_pairs[x]}
    return new_dict