removes the depreciation warning