return index of target dictionary elements