update depreciated functions