work on node logic