changed getZIndex()