added node logic