Trying to figure out corrections for the XYZ plots