added z order graph