moved util.HomoDict.filter() from wrong branch