add index to wordnode equals method