fixed return for z axis