moving this declaration up solved the CNDParser problem, before it was the last line