completed version for NER