trying to fix the issue with deprec