@nodes is not visible to buffer, pass it as argument

: