update XMethod