adding xdef