Changed z-direction