change keys to be a list becuase index keys can have three elements