WD change API. Code do not works