refactored z-indexes