z-indexing for shape

working