update dict of corpus method