trying to remove deprecation error