removed pendingSources, which shadows sources