finished wordseqcost not tested yet