make sure the z axis is in the right direction