edited z index

edited z index version 2.0