+ Changed the logic of z-axis statement