added tuple validation