added conversion of list of list to tuple of tuples