implemented zIndexUpdate