added tuple type based on the array type.