moved nlp to seperate class