tuple element using index matching