trying to fix the issue with deprecation