changing to track term frequencies