update depreciated method