now with working calibration for x,y, and z