refine tuples