subcripting by index and by key