added in z-indexing