migrate the xyz grid