setting up idex