corrected z-order