add tuples code