modified note and source scopes to not include "deleted" documents.