leaving preference based on node_id