added iterator with weights to support summarization