mapping tuples