adds logic funs for tuples