Then it mixed two file apis in the same function. I deleted the whole block.