changed z dir