z-indices corrected