getting rid of deprecation warnings