deals with <unk> and makes correct matching symbols