added debugging of processednodes