now generates code for Visible nodes