edit XRD def