adding zindex variables