replace toList with internalList