fix depreciation error