changes list to table