provide derivative func to nlp