added functionality to extract tuples into multiple parameters