not (isValidTuple) interspersed in all functions