removing DeprecationWarnings