update zscan, eliminate block in or node generated code