add a comment here as well that this is peekNode() inlined