extending functions and tuples