Compatible the new method

Compatible the new method