Ziqi added saveZ, saveXY