writing up z-indexes