Refactoring. Nodes evaluation is not correct - it differs from recurential stuff