resolved error related to calling convertToNNf function