fix node functions