demo converting arrays->lists->arrays