fixed concurrent modification exception on pendingElements; added TODO comment